import { dateFormat } from '@/util/date';
export const startDate = dateFormat(new Date(), 'yyyy-MM-') + '01';
export const endDate = dateFormat(new Date(), 'yyyy-MM-dd');
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "viewBtn": true,
  "addBtn": false,
  editBtn: false,
  delBtn: false,
  "selection": true,
  labelWidth: 120,
  searchMenuSpan: 6,
  height: 450,
  "column": [
    {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      "hide": true,
      "display": false
    },
    {
      hide:true,
      label: "线路",
      prop: "lineCode",
      type: "select",
      labelWidth: 130,
      display: false,
      rules: [
        {
          required: false,
          message: "请选择线路",
          trigger: "blur"
        }
      ]
    },
    {
      "type": "select",
      "label": "车站",
      "prop": "stationCode",
      "hide": false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/9",
      search: true
    },	  {
      "type": "select",
      "label": "办理类型",
      "prop": "handleType",
      "dicUrl": '/admin/dict/type/work_ticket_handle_type',
    },	  {
      "type": "select",
      "label": "票种",
      "prop": "ticketType",
      cascaderItem: ["ticketTypeParam"],
      props:{
        label:'mainName',
        value:'mainEnName'
      },
      dicUrl:'/support/swpmticketcardtype/dict',
    },	  {
      "type": "select",
      "label": "车票名称",
      "prop": "ticketName",
      props: {
        label: 'subName',
        value: 'subEnName'
      },
      dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
      disabled: true
    },	  {
      "type": "input",
      "label": "旧卡号",
      "prop": "cardOrder"
    },	  {
      "type": "input",
      "label": "金额",
      "prop": "amount"
    },	  {
      "type": "input",
      "label": "预估次数",
      "prop": "estimatedNumber"
    },	  {
      "type": "input",
      "label": "新卡号",
      "prop": "replaceCardOrder"
    },	  {
      "type": "input",
      "label": "新发票卡有效期",
      "prop": "activeTime"
    },	  {
      "type": "input",
      "label": "新发票卡次数",
      "prop": "ticketTimes"
    },{
      "type": "input",
      "label": "旧卡号",
      "prop": "cardOrderSearch",
      "hide": true,
      search: true,
      display: false,
    },{
      width:120,
      "type": "input",
      "label": "办理时间",
      "prop": "handleTime",
      "display": false,
      format: 'yyyy-MM-dd',
      searchLabelWidth:"120",
      //hide:true
    },
    {
      "type": "date",
      "label": "申请时间",
      "prop": "handleTime",
      hide: true,
      search:true,
      searchRange: true,
      searchSpan: 12,
      width: 90,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      width:120,
      "type": "select",
      "label": "无效票确认状态",
      "prop": "invalidTicketConfirmStatus",
      "dicUrl": '/admin/dict/type/sw_st_invalidticket_confirm_status',
      "display": false,
      search: true,
      searchValue:'1',
      searchLabelWidth:"120",
      //hide:true
    },{
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
	   width:180,
	   viewDisplay:true,
       span: 24
    }]
}
